package com.ruoyi.system.service.impl;

import com.ruoyi.system.domain.BizCustomer;
import com.ruoyi.system.mapper.BizCustomerMapper;
import com.ruoyi.system.service.BizCustomerService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class BizCustomerServiceImpl implements BizCustomerService {

    @Autowired
    private BizCustomerMapper bizCustomerMapper;

    @Override
    public List<BizCustomer> selectCustomerList(BizCustomer customer) {
        return bizCustomerMapper.selectCustomerList(customer);
    }

    @Override
    public BizCustomer selectCustomerById(Long customerId) {
        return bizCustomerMapper.selectCustomerById(customerId);
    }

    @Override
    public int insertCustomer(BizCustomer customer) {
        return bizCustomerMapper.insertCustomer(customer);
    }

    @Override
    public int updateCustomer(BizCustomer customer) {
        return bizCustomerMapper.updateCustomer(customer);
    }

    @Override
    public int deleteCustomerById(Long customerId) {
        return bizCustomerMapper.deleteCustomerById(customerId);
    }
}
